<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>


<jsp:useBean id="actionBean" scope="page"
             class="cz.muni.fi.pa165.bookingmanager.web.ReservationActionBean"/>
<s:layout-render name="/backend/layout.jsp" title="moduleNames.reservations" selectedPage="reservations">
    <s:layout-component name="left-column">
        <h3><f:message key="global.menu" /></h3>
        <ul class="nav">
            <li><s:link beanclass="cz.muni.fi.pa165.bookingmanager.web.ReservationActionBean" event="all"><f:message key="global.back_to_list" /> <f:message key="moduleNames.fourth_variant.reservations" /></s:link></li>        
        </ul>
    </s:layout-component>
    
    <s:layout-component name="body">
        <s:form beanclass="cz.muni.fi.pa165.bookingmanager.web.ReservationActionBean">               
            <s:hidden name="reservation.id" />
            
           <div class="table" > 
    <table class="listing form" cellpadding="0" cellspacing="0" > 
        <img src="${pageContext.request.contextPath}/backend/img/bg-th-left.gif" width="8" height="7" alt="" class="left">
        <img src="${pageContext.request.contextPath}/backend/img/bg-th-right.gif" width="7" height="7" alt="" class="right">

        <tbody>
            <tr><th class="full" colspan="5"><f:message key="global.edit" /> <f:message key="moduleNames.fourth_variant.reservations" /></th></tr>                         
       
        <tr class="bg">
            <td class="first"><strong><s:label for="r2" name="entities.reservation.start_date"/></strong></td>
            <td class="last"><s:text size="40" id="datepicker" name="date"  formatType="date" formatPattern="MM/dd/yyyy"/></td>
        </tr>
        <tr>
            <td class="first"><strong><s:label for="r3" name="entities.reservation.duration"/></strong></td>
            <td class="last"><s:text size="40" id="r3" name="reservation.duration"/></td>
        </tr>
       
           
          
        
    </tbody>
 </table>
</div>  
            <s:submit class="button" name="save"><f:message key="global.edit" /></s:submit>
        </s:form>        
    </s:layout-component>
</s:layout-render>